package com.lu.service.impl;

import com.lu.dao.BuyDao;
import com.lu.dao.impl.BuyDaoImpl;
import com.lu.service.BuyService;

public class BuyServiceImpl implements BuyService {
    BuyDao buyDao = new BuyDaoImpl();
    @Override
    public int updateSeller(int seller, double money) {
        return buyDao.updateSeller(seller,money);
    }

    @Override
    public int updateBuyer(int buyer, double money) {
        return buyDao.updateBuyer(buyer,money);
    }

    @Override
    public double getBuyerMoney(int buyer) {
        return buyDao.getBuyerMoney(buyer);
    }
}
